Enabling CIFS on a Virtual Server

After you create a CIFS domain, the next step in configuring CIFS access is enabling CIFS on a virtual server by using the protocol cifs server new command. The command requires the following information:

You can optionally specify a default UNIX user for the CIFS-enabled virtual server.

The following example enables CIFS access on a virtual server named vs0. The virtual server uses the CIFS domain named ENG and uses the NetBIOS name ENG-WIN to identify itself to CIFS clients. The virtual server uses the Microsoft NetBIOS type to register its NetBIOS name, uses Kerberos authentication for CIFS clients, and automatically updates its Machine Trust Account password. The username of a Kerberos administrator is kerb1, and the password is S3cur1ty.

node::> protocol cifs server new -vserver vs0 -domain ENG
-cifs-server ENG-WIN -broadcast enable -kerberos enable
-password-update enable -admin-username kerb1 -admin-password S3cur1ty

Displaying Information about CIFS-Enabled Virtual Servers

The protocol cifs server show command, by default, displays the following information about CIFS-enabled virtual servers:

  • Virtual server name

  • CIFS domain name

  • NetBIOS name of the CIFS-enabled virtual server

  • Whether Kerberos is enabled

  • Whether NetBIOS broadcasting is enabled (that is, whether the virtual server uses the Microsoft NetBIOS type (enabled) or peer NetBIOS type (disabled) to register its NetBIOS name)

Other information is displayed in a detailed view and if other parameters are specified. See the reference page for the command for details.

The following example displays information about all CIFS-enabled virtual servers:

node::> protocol cifs server show
Virtual       Domain         NetBIOS    Kerberos    Broadcast
Server        Name           Name       Enabled     Enabled
vs0           ENG            WIN-ENG    enable      enable

Modifying a CIFS-Enabled Virtual Server

You can use the protocol cifs server modify command to modify the NetBIOS broadcast setting, automatic password-update setting, and default UNIX user of a CIFS-enabled virtual server. The following example modifies a CIFS-enabled virtual server named vs1 to disable NetBIOS broadcasting (that is, to use the peer NetBIOS type) and to enable automatic updates of its Machine Trust Account password.

node::> protocol cifs server modify -vserver vs1 -broadcast disable
-password-update enable

Resetting the Kerberos Password for a CIFS-Enabled Virtual Server

If the Kerberos configuration on a CIFS-enabled virtual server becomes corrupted, use the protocol cifs server resetpassword command to reset the server's Kerberos password. The command prompts you for the user name and password of a Kerberos administrator with sufficient permissions to reset the password. If the CIFS-enabled virtual server does not have Kerberos authentication enabled, this command has no effect.

The following example resets the Kerberos password on a CIFS-enabled virtual server named vs0.

node::> protocol cifs server resetpassword -vserver vs0

Forcing a Machine Trust Account Password Change for a CIFS-Enabled Virtual Server

CIFS virtual servers must be members of a domain. They have Machine Trust Accounts on the Primary Domain Controller. Just like normal user accounts, Machine Trust Accounts have passwords that are known only to the machine using the account. For enhanced security, the password for the machine is randomly generated and cannot be specified by the system administrator.

The Data ONTAP 10.0 system automatically changes the Machine Trust Account passwords once a week. However, you have the option to force an immediate password change for a virtual server if you suspect a security breach or are trying to diagnose a problem. To do so, use the protocol cifs server forcepasswordchange command. When issuing the command, you must specify a virtual server, which contacts its primary domain controller and changes its Machine Trust Account password.

The following example forces a Machine Trust Account password change for a CIFS-enabled virtual server named vs0.

node::> protocol cifs server forcepasswordchange -vserver vs0

Deleting the CIFS Configuration of a Virtual Server

To delete the CIFS configuration of a virtual server, use the protocol cifs server delete command. The command does not delete the virtual server itself, just its ability to serve CIFS clients.

Note:

If you delete a virtual server, as described in “Deleting a Virtual Server”, the virtual server's CIFS configuration and any shares defined on the CIFS server are automatically deleted. Any Windows-to-UNIX or UNIX-to-Windows name mappings defined for the virtual server are also deleted because they require both the CIFS and NFS servers.

The following example deletes the CIFS configuration of a virtual server named vs1.

node::> protocol cifs server delete -vserver vs1